#pragma once
#include "TPColorBase.h"
class CTPBumpTexutre : public CTPColorBase
{
public:
	CTPBumpTexutre(void);
	virtual ~CTPBumpTexutre(void);
public:
	virtual BOOL FillColor(LPVOID pColorDef, BYTE* & pBuffer, int nWidth, int nHeight, eBufferFormat eFormat) ;
	virtual int	 SaveColorToBuffer(LPVOID pColorDef, LPVOID	lpBuffer, int nLength) ;
	virtual int	 LoadColorFromBuffer(LPVOID hColor,LPVOID	lpBuffer,int nLength) ;

private:
	BOOL		FillInCMethod(LPVOID pColorDef, BYTE* & pBuffer, int nWidth, int nHeight, eBufferFormat eFormat) ;
	BOOL		FillBumpColor(LPVOID pColorDef, DWORD* pBuffer, int nWidth, int nHeight);
};
